;;; emacs-settings.el --- gww

;; Copyright (C) 2013  gww

;; Author: gww <gww@192.168.0.171>
;; Keywords: lisp

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; 

;;; Code:

(defun show-elisp-repl()
  (interactive)
  (setq temp-buffer-name (buffer-name (current-buffer)))
  (show-output-window "*ielm*")
  (ielm)
  (switch-to-buffer-other-window temp-buffer-name)
  (show-output-window "*ielm*" t))

(define-key emacs-lisp-mode-map [f1] 'show-elisp-repl)
(define-key emacs-lisp-mode-map (kbd "C-c z")  'show-elisp-repl)

(provide 'mod-elisp)
;;; emacs-settings.el ends here

